<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>Examples</title>
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta name="description" content="" />
  <meta name="keywords" content="" />
  <link href="" rel="stylesheet" />
</head>

<body>
  <div id="root">
    <my-header>
      <div>world</div>
      <div>world2</div>
    </my-header>
  </div>
  <script src="../vue.js"></script>
  <script>
    const Header = {
      template:`
        <div>
        <h1>header</h1>
        <slot></slot>  
        </div>
      `
    }
    var vm = new Vue({
      el: "#root",
      data: {},
      components:{
        'my-header':Header
      }
    })
    // 去掉run...提示
    Vue.config.productionTip = false
  </script>
</body>

</html>